package com.jersey;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;


@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "feed")
public class DealFeedData {
	private Integer responseCode = 0;
	private String errorMessage = null;
	
	private DealBean deal = null;
	
	public DealFeedData() {
		
	}
	
	public DealFeedData(DealBean deal) {
		this.deal = deal;
	}
	
	public DealFeedData(ResponseMessage responseMessage) {
		this.responseCode = responseMessage.getCode();
		this.errorMessage = responseMessage.getErrorMessage();
	}

	public DealFeedData(Integer responseCode, String errorMessage) {
		this.responseCode = responseCode;
		this.errorMessage = errorMessage;
	}

	public Integer getResponseCode() {
		return responseCode;
	}

	public void setResponseCode(Integer responseCode) {
		this.responseCode = responseCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public DealBean getDeal() {
		return deal;
	}

	public void setDeal(DealBean deal) {
		this.deal = deal;
	}
	
	
}
